﻿<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="EditView.ascx.cs" Inherits="SplendidCRM.TopicCategories.EditView" %>

<script type="text/javascript">
    // 08/22/2010 Paul.  Automatically populate the name based on the file name. 
    function FileNameChanged(fld) {
        var sNAME = fld.value;
        if (sNAME.lastIndexOf('\\') >= 0) {
            sNAME = sNAME.substring(sNAME.lastIndexOf('\\') + 1, sNAME.length);
        }
        else if (sNAME.lastIndexOf('/') >= 0) {
            sNAME = sNAME.substring(sNAME.lastIndexOf('/') + 1, sNAME.length);
        }
        var txtNAME = document.getElementById('<%= new SplendidCRM.DynamicControl(this, "NAME").ClientID %>');
        if (txtNAME != null)
            txtNAME.value = sNAME;
    }
</script>
<div id="divEditView">
	<%@ Register TagPrefix="SplendidCRM" Tagname="ModuleHeader" Src="~/_controls/ModuleHeader.ascx" %>
	<SplendidCRM:ModuleHeader ID="ctlModuleHeader" Module="Topics" EnablePrint="false" HelpName="EditView" EnableHelp="true" Runat="Server" />
	<p>
	<%@ Register TagPrefix="SplendidCRM" Tagname="DynamicButtons" Src="~/_controls/DynamicButtons.ascx" %>
	<SplendidCRM:DynamicButtons ID="ctlDynamicButtons" Visible="<%# !PrintView %>" ShowRequired="true" Runat="Server" />

	<asp:HiddenField ID="LAYOUT_EDIT_VIEW" Runat="server" />
	<asp:Table SkinID="tabForm" runat="server">
		<asp:TableRow>
			<asp:TableCell>
				<table ID="tblMain" class="tabEditView" runat="server">
				</table>
			</asp:TableCell>
		</asp:TableRow>
	</asp:Table>
	</p>
	<SplendidCRM:DynamicButtons ID="ctlFooterButtons" Visible="<%# !PrintView %>" ShowRequired="false" Runat="Server" />
</div>
